<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<%     
    response.setHeader("Content-Disposition", "attachment; filename=code.xls"); 
    response.setHeader("Content-Description", "JSP Generated Data"); 
    response.setContentType("application/vnd.ms-excel");
%>
<table border="1">
	<tr>
		<td>번호</td>
		<td>level1</td>
		<td>level2</td>
		<td>level3</td>
		<td>코드내용</td>
		<td>등록일</td>	
		<td>수정일</td>
	</tr>
	<s:if test="%{list.size == 0}">
		<tr>                   
	    	<td colspan="7">
	        	데이터가 없습니다.
	        </td>
	    </tr>                    	
    </s:if>
	<s:iterator value="list" status="i">
	<tr>	
		<td><s:property value="code_seq" /></td>
		<td><s:property value="level1" /></td>
		<td><s:property value="level2" /></td>
		<td><s:property value="level3" /></td>
		<td><s:property value="code_content" /></td>
		<td><s:property value="write_time" /></td>
		<td><s:property value="modify_time" /></td>
	</tr>
	</s:iterator>
</table>